# Contributor: omni <omni+alpine@hack.org>
# Maintainer: omni <omni+alpine@hack.org>
pkgname=got
_pkgname=got-portable
pkgver=0.99
pkgrel=0
pkgdesc="A VCS which prioritizes ease of use and simplicity over flexibility"
url="https://gameoftrees.org/"
arch="all"
license="ISC"
makedepends="
	libbsd-dev
	libevent-dev
	libretls-dev
	ncurses-dev
	util-linux-dev
	zlib-dev
	"
options="!check"
subpackages="$pkgname-doc"
source="https://gameoftrees.org/releases/portable/got-portable-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	./configure --prefix=/usr --exec_prefix=/usr --mandir=/usr/share/man \
		--sysconfdir=/etc --localstatedir=/var
	make
}

check() {
	make tests
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
59504e9d0fe507f255a51aa0e565f69b190d7e94147c0848066919a932f44ff0724d841ba872c3ad34383e65adc1bffd30927a13add9314975bb613d2aa6b5f1  got-portable-0.99.tar.gz
"
